package homework04;

import java.util.ArrayList;

public class Player {
private String name ="P";
//名称
private int life=100;
//生命值
private int lifesize=100;
private int defense=0;
//防御力
private int attack=10;
//攻击力
Weapon wp;
Armour ar;
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public int getLife() {
	return life;
}
public void setLife(int life) {
	this.life = life;
}
public int getDefense() {
	return defense;
}
public void setDefense(int defense) {
	this.defense = defense +ar.getDefense();
}
public int getAttack() {
	return attack;
}
public void setAttack(int attack) {
	this.attack = attack +wp.getAttack();
}
public int getLifesize() {
	return lifesize;
}
public void setLifesize(int lifesize) {
	this.lifesize = lifesize;
}
public Weapon getWp() {
	return wp;
}
public void setWp(Weapon wp) {
	this.wp = wp;
}
public Armour getAr() {
	return ar;
}
public void setAr(Armour ar) {
	this.ar = ar;
}

}
